home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
batuti.arc
/
READ.ME
< prev
next >
Wrap
Text File
|
1990-01-11
|
3KB
|
148 lines
1/11/90 - ANW batch utilities
Purpose & use
-------------
The enclosed utilities are intended to help Netware users build flexible
start up batch files for users on a network. Below is a summary of each
utility's use:
setcdr -- Sets an environment variable to be the current drive specification.
usage:
setcdr env-var
example:
setcdr x
set
x=d:
setcwd -- Sets an environment variable to be the current working directory.
usage:
setcwd env-var
example:
setcwd cwd
set
cwd=c:\home\name
setnic -- Sets an environment variable to be the nic's address.
usage:
setnic env-var
example:
setnic nic
set
nic=0000380000A4
setuser -- Sets an environment variable to a user's login name.
usage:
setuser env-var
example:
setuser usr
set
usr=richard
Notes on make files
-------------------
Edit each make file & change the locale information as to where your libs,
includes, etc. are. Each make file can be invoked by: make -fsetnic or
alterantly, the batch file makeall.bat can be invoked.
C Compiler
----------
This code was compiled using Turbo C 2.0, all available ANSI C checks
were used.
inquires can be address via easyplex to CIS # 75470,1057 -Richard Connelly
An example of setnic usage -- 123 Release 3.0 invokation by network users.
@echo off
: 123.bat
:
: 123 v3.0 (Network Edition) batch file for eng_lan
: 1/4/90 - created
:
cls
:
: Set the nic address to env. var. n
:
setnic n
:
: Determine the name of the configuration file for this hardware
:
if %n%==0000380000A4 set u=paul
if %n%==00003800006F set u=andie
if %n%==02608C767257 set u=corinne
if %n%==0000380000C0 set u=carolyn
if %n%==000038000041 set u=sanchez
if %n%==02608C818255 set u=gay
if %n%==02608C676504 set u=ray
if %n%==0000C0B4F312 set u=dave
if %n%==0000C01FE412 set u=stormi
if %n%==0000C0DDFE12 set u=theresa
if %n%==0000C0C93414 set u=pinson
if %n%==0000C0DD2F14 set u=michelle
if %n%==0000C0F6B814 set u=darrell
if %n%==0000C0D6B414 set u=david
if %n%==0000C0828C14 set u=norbert
if %n%==0000C04F8314 set u=bob
if %n%==0000C00B3614 set u=rc
if %n%==0000C0B2DC14 set u=toby
:
: release env. var. n
:
set n=
:
: map lotus's path -- s1 = sys:\public
:
map ins s1:=s1:lotus\123r3 >nul:
:
: copy the machine's configuration file usr.lcf
:
ncopy \public\lotus\123r3\dcfs\%u%.lcf lotus.lcf >nul:
:
: call 123 with the users device configuration file usr.dcf
:
\public\lotus\123r3\123 \public\lotus\123r3\dcfs\%u%
:
: update the .lcf file
:
ncopy lotus.lcf \public\lotus\123r3\dcfs\%u%.lcf >nul:
:
: cleanup
:
set u=
map del s1: >nul:
del lotus.lcf >nul:
An example of using setuser on our network:
---------------------------------------------
@echo off
:
:home.bat -- always returns a user to their home directory
:
:
setuser u
cd \home\%u%
set u=
An example of using setcwd on our network:
------------------------------------------
@echo off
:
: Run 123's Release 3.0 (Network Edition) trans program
:
setcwd c
cd \public\lotus\123r3
trans
cd %c%
set c=